<?php
    $session=new CHttpSession();
    $session->open();
    $i=$session['i'];
?>

<tr<?php echo $i%2==1 ? '': ' class="tr1"'; ?>>
    <td align="center" class="td1<?php echo $i%2==1 ? '': ' td2"'; ?>"><?php echo $data->jid;?></td>
    <td class="td1<?php echo $i%2==1 ? '': ' td2"'; ?>"><a href="/index.php?r=job/view&id=<?php echo $data->jid;?>"><?php echo $data->title;?></a></td>
    <td align="center"<?php echo $i%2==1 ? '': ' class="td2"'; ?>><?php echo $data->createtime;?></td>
    <td align="center"<?php echo $i%2==1 ? '': ' class="td2"'; ?>><?php echo $data->audit==1? '已审核': '待审核';?></td>
    <td align="center"<?php echo $i%2==1 ? '': ' class="td2"'; ?>><a href="/index.php?r=manage/deljob&id=<?php echo $data->jid;?>">删除</a>
        |
        <a href="/index.php?r=manage/index&cate=11&id=<?php echo $data->jid;?>">修改</a></td>
</tr>

<?php
$session['i']=$i+1;
?>